﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zxb.OneTimeWork
{
    public class CityConfig
    {
        public int CityID;
        public string CityName;
        public string SoufunName;
        public int WeiKe_UserID;

        private static object objLock = new object();
        private static List<CityConfig> citylist;
        public static List<CityConfig> CityList
        {
            get
            {
                if (citylist == null)
                {
                    lock (objLock)
                    {
                        if (citylist == null)
                        {
                            citylist = GetCityList();
                        }
                    }
                }
                return citylist;
            }
        }
        private static List<CityConfig> GetCityList()
        {
            List<CityConfig> list = new List<CityConfig>();
            list.Add(new CityConfig() { CityID = 203, CityName = "北京", SoufunName = "anlikubj", WeiKe_UserID = 109435 });
            list.Add(new CityConfig() { CityID = 202, CityName = "上海", SoufunName = "anlikush8", WeiKe_UserID = 109445 });
            list.Add(new CityConfig() { CityID = 273, CityName = "广州", SoufunName = "anlikugz", WeiKe_UserID = 109639 });
            list.Add(new CityConfig() { CityID = 284, CityName = "深圳", SoufunName = "anlikusz", WeiKe_UserID = 109645 });
            list.Add(new CityConfig() { CityID = 105, CityName = "成都", SoufunName = "anlikucd", WeiKe_UserID = 109646 });

            list.Add(new CityConfig() { CityID = 155, CityName = "天津", SoufunName = "anlikutj", WeiKe_UserID = 109612 });
            list.Add(new CityConfig() { CityID = 332, CityName = "重庆", SoufunName = "anlikucq", WeiKe_UserID = 109641 });
            list.Add(new CityConfig() { CityID = 162, CityName = "西安", SoufunName = "anlikuxian", WeiKe_UserID = 109652 });
            list.Add(new CityConfig() { CityID = 250, CityName = "杭州", SoufunName = "anlikuhz", WeiKe_UserID = 109650 });
            list.Add(new CityConfig() { CityID = 194, CityName = "苏州", SoufunName = "anlikusuzhou", WeiKe_UserID = 109648 });

            list.Add(new CityConfig() { CityID = 175, CityName = "武汉", SoufunName = "anlikuwh", WeiKe_UserID = 109638 });
            list.Add(new CityConfig() { CityID = 192, CityName = "南京", SoufunName = "anlikunj", WeiKe_UserID = 109651 });
            list.Add(new CityConfig() { CityID = 232, CityName = "沈阳", SoufunName = "anlikusy", WeiKe_UserID = 109653 });
            list.Add(new CityConfig() { CityID = 314, CityName = "石家庄", SoufunName = "anlikusjz", WeiKe_UserID = 109647 });
            //list.Add(new CityConfig() { CityID = 203, CityName = "广州", SoufunName = "anlikugz", WeiKe_UserID = 109639 });

            return list;
        }
    }
}
